package structure.decorator;

/**
 * @author lzp
 * @Date:2023/2/24
 * @description: 抽象装饰器
 */
public abstract class NodeDecorator implements TextNode {
	protected final TextNode target;

	protected NodeDecorator(TextNode target) {
		this.target = target;
	}

	@Override
	public void setText(String text) {
		this.target.setText(text);
	}

}
